# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-applets
pkgver=1.28.0
pkgrel=0
pkgdesc="Applets for use with the MATE panel"
url="https://github.com/mate-desktop/mate-applets"
arch="all"
license="GPL-2.0-or-later"
depends="mate-icon-theme"
makedepends="
	dconf-dev
	gtk+3.0-dev
	gucharmap-dev
	intltool
	itstool
	libgtop-dev
	libmateweather-dev
	libnl3-dev
	libnotify-dev
	libwnck3-dev
	libxml2-dev
	libxml2-utils
	linux-headers
	mate-desktop-dev
	mate-panel-dev
	polkit-dev
	upower-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-applets-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr \
		--enable-static=no \
		--enable-polkit \
		--disable-stickynotes
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
badc4fa6a95b840033f12688ba0d2f0d9e0558fe4c0a4a8d97eba8fc1afc8e8611d81f343efb9703d5edc9c2c33b22fc2db624660a3e1d970209567da25581a7  mate-applets-1.28.0.tar.xz
"
